package com.i8office.android.zhihuixinwu.adapter;

import android.content.Context;
import android.view.ViewGroup;
import android.widget.TextView;

import com.cyan.tools.base.BaseViewHolder;
import com.cyan.tools.base.RecyclerArrayAdapter;
import com.i8office.android.zhihuixinwu.R;
import com.i8office.android.zhihuixinwu.bean.Opinion;
import com.i8office.android.zhihuixinwu.bean.WorkSheet;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created by pc on 2018/7/8.
 */

public class OpinionAdapter extends RecyclerArrayAdapter<String>{
    public OpinionAdapter(Context context) {
        super(context);
    }

    @Override
    public BaseViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) {
        return new ViewHolder(parent);
    }

    class ViewHolder extends BaseViewHolder<String> {
        @BindView(R.id.content)
        TextView content;

        public ViewHolder(ViewGroup parent) {
            super(parent, R.layout.item_opinion);
            ButterKnife.bind(this, itemView);
        }

        @Override
        public void setData(String data) {
            content.setText(data);
        }
    }
}
